.class Lcom/waiqin365/lightapp/deptmanager/ac;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/widget/AdapterView$OnItemClickListener;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/deptmanager/ac;->a:Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .locals 4

    invoke-virtual {p1}, Landroid/widget/AdapterView;->getAdapter()Landroid/widget/Adapter;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/deptmanager/a/a;

    iget-object v1, p0, Lcom/waiqin365/lightapp/deptmanager/ac;->a:Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->a(Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;)Landroid/widget/ListView;

    move-result-object v1

    invoke-virtual {v1}, Landroid/widget/ListView;->getHeaderViewsCount()I

    move-result v1

    sub-int v1, p3, v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/deptmanager/a/a;->a(I)Lcom/waiqin365/lightapp/deptmanager/c/c;

    move-result-object v0

    iget-boolean v1, v0, Lcom/waiqin365/lightapp/deptmanager/c/c;->v:Z

    if-nez v1, :cond_0

    check-cast v0, Lcom/waiqin365/lightapp/deptmanager/c/a;

    new-instance v1, Landroid/content/Intent;

    iget-object v2, p0, Lcom/waiqin365/lightapp/deptmanager/ac;->a:Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->b(Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;)Landroid/content/Context;

    move-result-object v2

    const-class v3, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;

    invoke-direct {v1, v2, v3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v2, "deptId"

    iget-object v0, v0, Lcom/waiqin365/lightapp/deptmanager/c/a;->a:Ljava/lang/String;

    invoke-virtual {v1, v2, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    iget-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/ac;->a:Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/deptmanager/DeptEmpManagerActivity;->startActivity(Landroid/content/Intent;)V

    :cond_0
    return-void
.end method
